﻿namespace ReagentStore
{
	public delegate void PassParamsHandler<T>(DialogParam<T> param) where T : class;

	public enum ActionTypes
	{
		Feedback,
		Insert,
		Update,
		Delete
	};

	public class DialogParam<T>
		where T : class
	{
		public DialogParam(ActionTypes actionType, T param)
		{
			ActionType = actionType;
			Parameter = param;
		}

		public DialogParam(T param)
			: this(ActionTypes.Feedback, param)
		{
		}

		public ActionTypes ActionType { get; private set; }
		public T Parameter { get; private set; }
	}
}